<#import "spring.ftl" as spring />
<#setting number_format="0.##">
<#setting locale="en_US">
<form id="editProduct" name="editProduct" action="editProduct.do" method="POST">
  <@spring.formHiddenInput "command.productId" />
  <span class="error" id="message">
    <@spring.bind "command.*"/>
    <@spring.showErrors  "<br/>" />
  </span>
  <span class="formfield">
    <label for="name"><@spring.message "product.name"/></label>
    <@spring.formInput "command.name" />
  </span>
  <span class="formfield">
    <label for="code"><@spring.message "product.code"/></label>
    <@spring.formInput "command.code" />
  </span>
  <span class="formfield">
    <label for="description"><@spring.message "product.description"/></label>
    <@spring.formInput "command.description" />
  </span>
  <span class="formfield">
    <label for="showDescription"><@spring.message "product.show.description"/></label>
    <@spring.formInput "command.showDescription" />
  </span>
  <span class="formfield">
    <label for="brand"><@spring.message "product.brand"/></label>
    <@spring.formInput "command.brand" />
  </span>
  <span class="formfield">
    <label for="category"><@spring.message "product.category"/></label>
    <@spring.formInput "command.category" />
  </span>
  <span class="formfield">
    <label for="measure"><@spring.message "product.measure"/></label>
    <@spring.formInput "command.mesaureType" />
  </span>
  <span class="formfield">
    <label for="price"><@spring.message "product.price"/></label>
    <@spring.formInput "command.rawPrice" />
  </span>
  <span class="formfield">
    <label for="deskprice"><@spring.message "product.desk.price"/></label>
    <@spring.formInput "command.deskPrice" />
  </span>
  <span class="formfield">
    <label for="stock"><@spring.message "product.stock"/></label>
    <@spring.formInput "command.stock" />
  </span>
  <span class="formfield">
    <input type="submit" name="submit" value="<@spring.message "product.add.button"/>" />
  </span>
</form>